import { CardDataCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";

/** Card 自定义组件,前后端交互json格式: **/
const CARD_113 = {  // card113容器，故事搜索话题卡片;包含话题数据，以及三个故事segemnt
  ..._.cloneDeep(CardDataCommonDefault),
  "card_type": 113,  // 现在的故事发现页的序号，需要替换成新申请的

  // 下面6个字段是你们动态配的，card渲染或交互相关
  "topic_name": "拍微博故事",
  "label_url": "http://话题旁边label图片的链接",
  "topic_url_text": "6584 讨论",  // 6584 讨论
  "topic_url": "",  // 跳转话题的schema，点击整个header跳转
  "card_url": "",  // 跳转链接或schema，如果不为空，则点击整个卡片各处都会跳这里，不会再跳单个视频或header
  "show_like": "1",  // 是否显示点赞数，0/1或者true/false都行
  "display_arrow": 1,  // 是否显示文案右边箭头
  "title_bold": 1,  // 话题字体是否加粗

  "show_columns": 3,  // 一行有几个故事，这里应该是写死3行
  "segments": [  // segment数组，每个segment代表一个故事视频，此处应该有三个segment。这里只列举一个。
    {
        "segment_id": 4265080079248072,
        "create_time": 1532357795000,
        "expire_time": 1532444195000,
        "segment_type": 0,
        "viewer_count": 0,
        "comment_count": 132,
        "like_count": 3175,             //点赞数，复制一份叫：attitudes_count
        "attitudes_count": 3175,
        "featurecode": "10000837",      //此卡片的featurecode
        "play_count": 253898,
        "share_count": 63,
        "state": 1,
        "resources": [
            {
                "fid": 4265080083169327,
                "resource_type": 2,
                "hd_url": "http://wx2.sinaimg.cn/large/62b95273ly8ftk6sk00hoj20f00qomzz.jpg",
                "duration": 3000
            },
            {
                "fid": 4265080079248072,
                "resource_type": 0,
                "hd_url": "http://f.us.sinaimg.cn/000whHI7lx07mgvaXLeU0104020031SD0k010.mp4?label=mp4_hd&template=540x960.24&Expires=1532599798&ssig=kTf7H%2F%2F%2B6D&KID=unistore,video",
                "duration": 10000,
                "resources_details": {
                    "hd": {
                        "url": "http://f.us.sinaimg.cn/000whHI7lx07mgvaXLeU0104020031SD0k010.mp4?label=mp4_hd&template=540x960.24&Expires=1532599798&ssig=kTf7H%2F%2F%2B6D&KID=unistore,video",
                        "prefetch_size": 180303,
                        "size": 722215,
                        "bitrate": 551
                    }
                }
            }
        ],
        "slides": [
            "http://wx2.sinaimg.cn/or360/62b95273ly1ftk6sm4cmkj20f00qoab3.jpg"
        ],
        "story_id": "1656312435_0",
        "extension": "{\"video_cover\":\"4265080083169327\",\"media_info\":{\"video_duration\":\"10.080\",\"is_share\":false,\"camera_mode\":0,\"caputreSeesionID\":\"4EF246CE-94C0-4D4E-A4F6-14CA5516111F\",\"is_cha\":false,\"ua\":\"iPhone10,3__weibo__8.7.2__iphone__os11.3.1\",\"is_save\":false,\"media_type\":\"video\",\"filter_id\":0,\"width\":540,\"media_create_date\":1532344817,\"media_from\":1,\"height\":960},\"device_type\":\"iPhone10,3\",\"position\":{\"pos_state\":0,\"pos_info\":{\"lng\":\"116.4773544675289\",\"time\":1532357723255,\"lat\":\"39.91806173855722\"}}}",
        "like": 0,
        "is_allow_share": 1,
        "share_def_id": 0,
        "description": "",
        "object_id": "1042151:4265080079248072",
        "actionlog": {
            "act_type": 1,
            "act_code": 799,
            "source": "video",
            "object_id": "1042151:4265080079248072",
            "ext": "video_orientation:vertical|segment_id:4265080079248072|object_duration:10000|segment_type:0|objectid:1042151%3A4265080079248072"
        }
    },
    {
        "segment_id": 4265080079248072,
        "create_time": 1532357795000,
        "expire_time": 1532444195000,
        "segment_type": 0,
        "viewer_count": 0,
        "comment_count": 132,
        "like_count": 3175,             //点赞数，复制一份叫：attitudes_count
        "attitudes_count": 3175,
        "featurecode": "10000837",      //此卡片的featurecode
        "play_count": 253898,
        "share_count": 63,
        "state": 1,
        "resources": [
            {
                "fid": 4265080083169327,
                "resource_type": 2,
                "hd_url": "http://wx2.sinaimg.cn/large/62b95273ly8ftk6sk00hoj20f00qomzz.jpg",
                "duration": 3000
            },
            {
                "fid": 4265080079248072,
                "resource_type": 0,
                "hd_url": "http://f.us.sinaimg.cn/000whHI7lx07mgvaXLeU0104020031SD0k010.mp4?label=mp4_hd&template=540x960.24&Expires=1532599798&ssig=kTf7H%2F%2F%2B6D&KID=unistore,video",
                "duration": 10000,
                "resources_details": {
                    "hd": {
                        "url": "http://f.us.sinaimg.cn/000whHI7lx07mgvaXLeU0104020031SD0k010.mp4?label=mp4_hd&template=540x960.24&Expires=1532599798&ssig=kTf7H%2F%2F%2B6D&KID=unistore,video",
                        "prefetch_size": 180303,
                        "size": 722215,
                        "bitrate": 551
                    }
                }
            }
        ],
        "slides": [
            "http://wx2.sinaimg.cn/or360/62b95273ly1ftk6sm4cmkj20f00qoab3.jpg"
        ],
        "story_id": "1656312435_0",
        "extension": "{\"video_cover\":\"4265080083169327\",\"media_info\":{\"video_duration\":\"10.080\",\"is_share\":false,\"camera_mode\":0,\"caputreSeesionID\":\"4EF246CE-94C0-4D4E-A4F6-14CA5516111F\",\"is_cha\":false,\"ua\":\"iPhone10,3__weibo__8.7.2__iphone__os11.3.1\",\"is_save\":false,\"media_type\":\"video\",\"filter_id\":0,\"width\":540,\"media_create_date\":1532344817,\"media_from\":1,\"height\":960},\"device_type\":\"iPhone10,3\",\"position\":{\"pos_state\":0,\"pos_info\":{\"lng\":\"116.4773544675289\",\"time\":1532357723255,\"lat\":\"39.91806173855722\"}}}",
        "like": 0,
        "is_allow_share": 1,
        "share_def_id": 0,
        "description": "",
        "object_id": "1042151:4265080079248072",
        "actionlog": {
            "act_type": 1,
            "act_code": 799,
            "source": "video",
            "object_id": "1042151:4265080079248072",
            "ext": "video_orientation:vertical|segment_id:4265080079248072|object_duration:10000|segment_type:0|objectid:1042151%3A4265080079248072"
        }
    },
    {
        "segment_id": 4265080079248072,
        "create_time": 1532357795000,
        "expire_time": 1532444195000,
        "segment_type": 0,
        "viewer_count": 0,
        "comment_count": 132,
        "like_count": 3175,             //点赞数，复制一份叫：attitudes_count
        "attitudes_count": 3175,
        "featurecode": "10000837",      //此卡片的featurecode
        "play_count": 253898,
        "share_count": 63,
        "state": 1,
        "resources": [
            {
                "fid": 4265080083169327,
                "resource_type": 2,
                "hd_url": "http://wx2.sinaimg.cn/large/62b95273ly8ftk6sk00hoj20f00qomzz.jpg",
                "duration": 3000
            },
            {
                "fid": 4265080079248072,
                "resource_type": 0,
                "hd_url": "http://f.us.sinaimg.cn/000whHI7lx07mgvaXLeU0104020031SD0k010.mp4?label=mp4_hd&template=540x960.24&Expires=1532599798&ssig=kTf7H%2F%2F%2B6D&KID=unistore,video",
                "duration": 10000,
                "resources_details": {
                    "hd": {
                        "url": "http://f.us.sinaimg.cn/000whHI7lx07mgvaXLeU0104020031SD0k010.mp4?label=mp4_hd&template=540x960.24&Expires=1532599798&ssig=kTf7H%2F%2F%2B6D&KID=unistore,video",
                        "prefetch_size": 180303,
                        "size": 722215,
                        "bitrate": 551
                    }
                }
            }
        ],
        "slides": [
            "http://wx2.sinaimg.cn/or360/62b95273ly1ftk6sm4cmkj20f00qoab3.jpg"
        ],
        "story_id": "1656312435_0",
        "extension": "{\"video_cover\":\"4265080083169327\",\"media_info\":{\"video_duration\":\"10.080\",\"is_share\":false,\"camera_mode\":0,\"caputreSeesionID\":\"4EF246CE-94C0-4D4E-A4F6-14CA5516111F\",\"is_cha\":false,\"ua\":\"iPhone10,3__weibo__8.7.2__iphone__os11.3.1\",\"is_save\":false,\"media_type\":\"video\",\"filter_id\":0,\"width\":540,\"media_create_date\":1532344817,\"media_from\":1,\"height\":960},\"device_type\":\"iPhone10,3\",\"position\":{\"pos_state\":0,\"pos_info\":{\"lng\":\"116.4773544675289\",\"time\":1532357723255,\"lat\":\"39.91806173855722\"}}}",
        "like": 0,
        "is_allow_share": 1,
        "share_def_id": 0,
        "description": "",
        "object_id": "1042151:4265080079248072",
        "actionlog": {
            "act_type": 1,
            "act_code": 799,
            "source": "video",
            "object_id": "1042151:4265080079248072",
            "ext": "video_orientation:vertical|segment_id:4265080079248072|object_duration:10000|segment_type:0|objectid:1042151%3A4265080079248072"
        }
    },
  ],
};

export default CARD_113;
